Skip to content

Integrate external project zlib, libxml2 and sundials build into main cmake build #640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

benstonezhang
Copy link

no need to run separate build python script anymore, all within cmake

…8, because of sundials v7.1.1 requirements.

Signed-off-by: Benstone Zhang <[email protected]>
@benstonezhang benstonezhang force-pushed the main branch 2 times, most recently from 6ca7360 to 13793d3 Compare March 30, 2025 03:27
@benstonezhang benstonezhang changed the title Integrate external project zlib, libxml2 and sundials build into fmusim cmake build Integrate external project zlib, libxml2 and sundials build into main cmake build Mar 30, 2025
xml2_src
PREFIX ${EXTERNAL_BASE_DIR}
GIT_REPOSITORY https://github.com/GNOME/libxml2.git
GIT_TAG 60d3056c97067e6cb2125284878ed7c99c90ed81 # v2.13.4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GIT_TAG 60d3056c97067e6cb2125284878ed7c99c90ed81 # v2.13.4
GIT_TAG v2.13.4

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per cmake document ExternalProject, commit hash should be preferred than tag.
Anyway, if you really want tag, I will update it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK to keep as is.

zlib_src
PREFIX ${EXTERNAL_BASE_DIR}
GIT_REPOSITORY https://github.com/madler/zlib.git
GIT_TAG 51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf # v1.3.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GIT_TAG 51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf # v1.3.1
GIT_TAG v1.3.1

cvcode_src
PREFIX ${EXTERNAL_BASE_DIR}
GIT_REPOSITORY https://github.com/LLNL/sundials.git
GIT_TAG c28eaa3764a03705d61decb6025b409360e9d53f # v7.1.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GIT_TAG c28eaa3764a03705d61decb6025b409360e9d53f # v7.1.1
GIT_TAG v7.1.1

@benstonezhang
Copy link
Author

benstonezhang commented Apr 2, 2025

by the way, we can generate and build all on linux and macOS by cmake with command:

cmake -B fmu_build -DFMI_VERSION=3 -DFMI_TYPE=CS -DWITH_FMUSIM=1 -DWITH_FMUSIM_GUI=1 -DCMAKE_PREFIX_PATH=${{env.QT_ROOT_DIR}} && cmake --build fmu_build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants